Release 10.1A: OpenEdge Development:
Java Open Clients


General property accessor methods for RunTimeProperties class

You can access global properties by property name using the get and set general purpose methods. When you use these methods, you must call the correct accessor based on the data type of the property. Here is the syntax for these general methods:

Get property methods syntax

public static String getStringProperty(String propName) 
public static int getIntProperty(String propName) 
public static long getLongProperty(String propName) 
public static boolean getBooleanProperty(String propName) 

Set property methods syntax

public static void setStringProperty(String propName, String propValue) 
public static void setIntProperty(String propName, int propValue) 
public static void setLongProperty(String propName, long propValue) 
public static void setBooleanProperty(String propName, boolean propValue) 

propName

The property name. This can be any of the properties listed in the tables in the "Available properties" section.

propValue

The value for the property name.

For example, to set the PROGRESS.Session.initialConnections property to 5, use the following method to set an integer property:

RunTimeProperties.setIntProperty(“PROGRESS.Session.initialConnections”,5); 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095